import request from '@/utils/request'
import {appConfig} from '../../config/app'

const service = appConfig.microServModules.mall + 'api/portalEnt'
const specialArea = appConfig.microServModules.system + 'api/specialArea/'

// 查询热销
export function qryHotGoodsList (data) {
  return request(`${service}/qryHotGoodsList`, {method: 'post', data: data})
}

// 查询数据专区
export function qrySpecialAreaPage (data) {
  return request(`${service}/qrySpecialAreaPage`, {method: 'post', data: data})
}

// 查询品牌商
export function qryBrandSupplierList (data) {
  return request(`${service}/qryBrandSupplierList`, {method: 'post', data: data})
}

// 查询楼层
export function getPortalFloorList (data) {
  return request(`${service}/getPortalFloorList`, {method: 'post', data: data})
}

// 查询店铺楼层
export function getShopPortalFloorList (id) {
  return request(`${service}/getPortalFloorList?supplierId=`+id, {method: 'post'})
}

// 查询轮播图
export function getCycleimgsList (data) {
  return request(`${service}/getCycleimgsList`, {method: 'post', data: data})
}

// 查询专区管理列表
export function querySpecialAreaPage (data) {
  return request(`${specialArea}querySpecialAreaPage`, {method: 'post', data})
}

// 查询专区管理列表
export function getSpecialAreaList (data) {
  return request(`${specialArea}getSpecialAreaList`, {method: 'post', data})
}

// 返回专区树
export function getSpecialAreaTreeList (data) {
  return request(`${specialArea}getSpecialAreaTreeList`, {method: 'post', data})
}

// 客服
export function onlineService (data) {
  return request(`${appConfig.microServModules.mall}api/customerService/getUrl`, {method: 'post', data})
}

// 最新中标公告
export function listPage (data) {
  return request(`${appConfig.microServModules.system}api/sectionWinNotice/listPage`, {method: 'post', data})
}

// 首页热门展会列表接口
export function popularExhibitionsMallList (data) {
  return request(`${appConfig.microServModules.system}api/popularExhibitions/popularExhibitionsMallList`, {method: 'get', data})
}

// 获取展会信息举办地点列表
export function queryAreaNameList (data) {
  return request(`${appConfig.microServModules.system}api/popularExhibitions/queryAreaNameList`, {method: 'get', data})
}

// 展会信息(分页)列表接口
export function popularExhibitionsPage (data) {
  return request(`${appConfig.microServModules.system}api/popularExhibitions/popularExhibitionsPage`, {method: 'post', data})
}

// 查询展会详情
export function queryPopularExhibitionsDetail (data) {
  return request(`${appConfig.microServModules.system}api/popularExhibitions/queryPopularExhibitionsDetail`, {method: 'get', data})
}

// 获取排行数据
export function rankingListPage (data) {
  return request(`${appConfig.microServModules.system}api/sectionWinNotice/rankingListPage`, {method: 'post', data})
}

// 获取底部
export function externalLinklist (data) {
  return request(`${appConfig.microServModules.system}api/linkCategory/externalLinklist`, {method: 'get', data})
}
